Skip to main content
POST
/
public
/
v1
/
campaign-service
/
campaigns
/
exclusive-listing
[BETA] Create exclusive listing campaign.
curl --request POST \
  --url https://api.topsort.com/public/v1/campaign-service/campaigns/exclusive-listing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "bids": [
    {
      "target": {
        "id": "p_8983",
        "type": "product"
      },
      "triggers": [
        {
          "type": "category",
          "value": {
            "categoryId": "<string>"
          }
        }
      ]
    }
  ],
  "endDate": "2023-11-07T05:31:56Z",
  "exclusivityPrice": 123,
  "externalCampaignId": "<string>",
  "isActive": true,
  "isAutoTrigger": false,
  "name": "Bola-Bola Ad campaign",
  "position": 3,
  "startDate": "2023-11-07T05:31:56Z",
  "walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "adFormat": "exclusive_listing",
  "bidType": "exclusive",
  "campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "chargeType": "DAILY",
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "endDate": "2023-11-07T05:31:56Z",
  "exclusivityPrice": 123,
  "externalCampaignId": "<string>",
  "isActive": true,
  "isAutoTrigger": false,
  "marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Bola-Bola Ad campaign",
  "position": 3,
  "startDate": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "vendorId": "<string>",
  "walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Query Parameters

vendor_id
string
required

The ID of the vendor.

Minimum length: 1

Body

application/json

The request body for creating an exclusive listing campaign.

bids
CreateExclusiveListingBid · object[]
required

An array of bids for this campaign.

Minimum length: 1
endDate
string<date-time>
required

When should the campaign stop. Must be greater than start date.

exclusivityPrice
integer
required

The price to pay daily for the campaign to run.

name
string
required

The name of the campaign.

Minimum length: 1
Example:

"Bola-Bola Ad campaign"

position
integer
required

The auction position for exclusive listing campaign

Required range: 1 <= x <= 5
startDate
string<date-time>
required

When should the campaign start. If the start date is in the past, it will be set to the current date.

externalCampaignId
string

The external ID of the campaign in the marketplace. Must be unique per marketplace and format combination.

isActive
boolean
default:true

Whether the campaign should be activated upon creation.The campaign will start when this is set and the start_date has passed.

isAutoTrigger
boolean
default:false

Whether the campaign is auto-triggered.

walletId
string<uuid>

The uuid of the wallet to be used with this campaign.

Response

Successful Response

Model that represents an Exclusive Listing Campaign.

adFormat
enum<string>
required

The ad format of the campaign. Can be exclusive_listing.

Available options:
exclusive_listing
Example:

"exclusive_listing"

campaignId
string<uuid>
required

The ID of the campaign.

chargeType
enum<string>
required

How exclusive campaigns are going to be charged, only daily is allowed.

Available options:
DAILY
createdAt
string<date-time>
required

When was this campaign created.

exclusivityPrice
integer
required

The price to pay daily for the campaign to run.

marketplaceId
string<uuid>
required

The ID of the marketplace.

name
string
required

The name of the campaign.

Minimum length: 1
Example:

"Bola-Bola Ad campaign"

position
integer
required

The auction position for exclusive listing campaign

Required range: 1 <= x <= 5
updatedAt
string<date-time>
required

When was this campaign last updated.

vendorId
string
required

The marketplace's ID of the vendor.

bidType
enum<string>
default:exclusive

The bidding type of the campaign.

Available options:
exclusive
createdBy
string<uuid>

The ID of the user creating the campaign.

endDate
string<date-time>

Date when to stop the campaign, specified in RFC 3339, if not set the campaign will never stop. This date must be greater than the start date and must be in the future. Must include the Timezone definition.

externalCampaignId
string

The external ID of the campaign in the marketplace.

isActive
boolean
default:true

Whether the campaign should be activated upon creation.The campaign will start when this is set and the start_date has passed.

isAutoTrigger
boolean
default:false

Whether the campaign is auto-triggered.

startDate
string<date-time>

Date when to start the campaign, specified in RFC 3339, if not set that campaign will start immediately after the campaign creation. Must include the Timezone definition.If the start date is in the past, it will be set to the current date.

walletId
string<uuid>

The uuid of the wallet to be used with this campaign.